<?php

namespace App\Enums\WorkOrder;

use App\Models\Common\ResourcesModel;
use App\Models\WorkOrder\WorkOrderApplyMainModel;
use App\Models\WorkOrder\WorkOrderUserRoleModel;

class OrderEnum
{
    // 主订单状态
    const MAIN_STATUS_CLOSE  = 0;
    const MAIN_STATUS_ING    = 1;
    const MAIN_STATUS_FINISH = 2;

    /**
     * 不允许直接调用，请使用WorkOrderApplyMainModel->getMainStatusTextAttribute();
     */
    const MAIN_STATUS_TEXT = [
        self::MAIN_STATUS_CLOSE  => '已关闭',
        self::MAIN_STATUS_ING    => '反馈中',
        self::MAIN_STATUS_FINISH => '已完成',
    ];

    const PROBLEM_FEEDBACK_INFO_USE_APP = 1;  //问题详情用于APP
    const PROBLEM_FEEDBACK_INFO_USE_WEB = 2;  //问题详情用于WEB

    // 问题父级类型
    const PROBLEM_PID_1  = 1;// 仓储配送问题
    const PROBLEM_PID_2  = 2;// 品质异常问题
    const PROBLEM_PID_3  = 3;
    const PROBLEM_PID_4  = 4;// 设备软装问题
    const PROBLEM_PID_5  = 5;// 功能开通
    const PROBLEM_PID_6  = 6;// 门店运营问题
    const PROBLEM_PID_7  = 7;// 供应链问题
    const PROBLEM_PID_8  = 8;// 招商加盟问题
    const PROBLEM_PID_9  = 9;// 软件使用
    const PROBLEM_PID_10 = 10;// 其它反馈问题


    /**
     * 分类父子级关系
     */
    const TYPE_RELATION_MAP = [
        self::PROBLEM_PID_1  => self::PROBLEM_PID_1_CHILDREN_MAPPING,
        self::PROBLEM_PID_2  => self::PROBLEM_PID_2_CHILDREN_MAPPING,
        self::PROBLEM_PID_4  => self::PROBLEM_PID_4_CHILDREN_MAPPING,
        self::PROBLEM_PID_5  => self::FUNCTION_OPEN,
        self::PROBLEM_PID_6  => self::PROBLEM_PID_6_CHILDREN_MAPPING,
        self::PROBLEM_PID_7  => self::PROBLEM_PID_7_CHILDREN_MAPPING,
        self::PROBLEM_PID_8  => self::PROBLEM_PID_8_CHILDREN_MAPPING,
        self::PROBLEM_PID_9  => self::PROBLEM_PID_9_CHILDREN_MAPPING,
        self::PROBLEM_PID_10 => self::PROBLEM_PID_10_CHILDREN_MAPPING,
    ];

    // 功能开通二级类型
    const PROBLEM_PID_5_CHILDREN_100 = 100;
    const PROBLEM_PID_5_CHILDREN_101 = 101;
    const PROBLEM_PID_5_CHILDREN_102 = 102;
    const PROBLEM_PID_5_CHILDREN_103 = 103;
    const PROBLEM_PID_5_CHILDREN_104 = 104;
    const PROBLEM_PID_5_CHILDREN_105 = 105;

    const FUNCTION_OPEN = [
        self::PROBLEM_PID_5_CHILDREN_100 => '夸父收银进件',
        self::PROBLEM_PID_5_CHILDREN_101 => '美团外卖',
        self::PROBLEM_PID_5_CHILDREN_102 => '饿了么外卖',
        self::PROBLEM_PID_5_CHILDREN_103 => '点评建店',
        self::PROBLEM_PID_5_CHILDREN_104 => '抖音建店开通',
        self::PROBLEM_PID_5_CHILDREN_105 => '夸父收银进件2.0',
    ];

    // 如果功能开通有变动 请维护这个枚举  这个枚举用在智能客服发送工单链接区域
    const CHAT_GROUP_FUNCTION_OPEN = [
        self::PROBLEM_PID_5_CHILDREN_101 => '美团外卖',
        self::PROBLEM_PID_5_CHILDREN_102 => '饿了么外卖',
        self::PROBLEM_PID_5_CHILDREN_103 => '点评建店',
        self::PROBLEM_PID_5_CHILDREN_104 => '抖音建店开通',
        self::PROBLEM_PID_5_CHILDREN_105 => '夸父收银',
    ];

    const FUNCTION_OPEN_CHILDREN_MAPPING = [
        self::PROBLEM_PID_5_CHILDREN_100 => '01',
        self::PROBLEM_PID_5_CHILDREN_101 => '02',
        self::PROBLEM_PID_5_CHILDREN_102 => '03',
        self::PROBLEM_PID_5_CHILDREN_103 => '04',
        self::PROBLEM_PID_5_CHILDREN_104 => '05',
    ];

    const PROBLEM_PID_TEXT = [
        self::PROBLEM_PID_1  => '仓储配送问题',
        self::PROBLEM_PID_2  => '品质异常问题',
        //self::PROBLEM_PID_3 => '收银',
        self::PROBLEM_PID_4  => '设备软装问题',
        self::PROBLEM_PID_5  => '功能开通',
        self::PROBLEM_PID_6  => '门店运营问题',
        self::PROBLEM_PID_7  => '供应链问题',
        self::PROBLEM_PID_8  => '招商加盟问题',
        self::PROBLEM_PID_9  => '软件使用',
        self::PROBLEM_PID_10 => '其它反馈问题',
    ];

    const PROBLEM_PID_TEXT_SHORT = [
        self::PROBLEM_PID_1  => '仓储',
        self::PROBLEM_PID_2  => '品控',
        //self::PROBLEM_PID_3 => '收银',
        self::PROBLEM_PID_4  => '设备',
        self::PROBLEM_PID_5  => '功能',
        self::PROBLEM_PID_6  => '门店运营问题',
        self::PROBLEM_PID_7  => '供应链问题',
        self::PROBLEM_PID_8  => '招商加盟问题',
        self::PROBLEM_PID_9  => '软件使用',
        self::PROBLEM_PID_10 => '其它反馈问题',
    ];

    // 各种类型对应的负责人角色
    const PROBLEM_PID_TO_ROLE = [
        self::PROBLEM_PID_1 => WorkOrderUserRoleModel::ROLE_TYPE_3,
        self::PROBLEM_PID_2 => WorkOrderUserRoleModel::ROLE_TYPE_2,
        self::PROBLEM_PID_4 => WorkOrderUserRoleModel::ROLE_TYPE_5,
        self::PROBLEM_PID_5 => WorkOrderUserRoleModel::ROLE_TYPE_4,
        self::PROBLEM_PID_6 => WorkOrderUserRoleModel::ROLE_TYPE_1,
        self::PROBLEM_PID_7 => WorkOrderUserRoleModel::ROLE_TYPE_1,
        self::PROBLEM_PID_8 => WorkOrderUserRoleModel::ROLE_TYPE_1,
        self::PROBLEM_PID_9 => WorkOrderUserRoleModel::ROLE_TYPE_1,
        self::PROBLEM_PID_10 => WorkOrderUserRoleModel::ROLE_TYPE_1,
    ];

    // 不需要处理人的类型
    const PROBLEM_NOT_NEED_HANDLE = [
        self::PROBLEM_PID_1,
        self::PROBLEM_PID_2,
        self::PROBLEM_PID_6,
        self::PROBLEM_PID_7,
        self::PROBLEM_PID_8,
        self::PROBLEM_PID_9,
        self::PROBLEM_PID_10,
    ];

    //资源的BUSINESS定义

//    const PROBLEM_PID_BUSINESS = [
//        self::PROBLEM_PID_1   => ResourcesModel::BUSINESS_WORK_ORDER_PROBLEM_FEEDBACK,
//        self::PROBLEM_PID_2   => ResourcesModel::BUSINESS_WORK_ORDER_PROBLEM_FEEDBACK,
//        self::PROBLEM_PID_3 => '收银故障问题',
//        self::PROBLEM_PID_4 => '炸炉、展柜、软装问题',
//        self::PROBLEM_PID_100 => '收银开通',
//        self::PROBLEM_PID_101 => '外卖开通',
//        self::PROBLEM_PID_102 => '美团团购开通',
//        self::PROBLEM_PID_103 => '抖音团购开通',
//    ];


    //工单号规则

    const WORK_ORDER_PREFIX_ROLE       = 'AA';
    const WORK_ORDER_CHILD_PREFIX_ROLE = '00';

    const PROBLEM_PID_PREFIX_TEXT = [
        self::PROBLEM_PID_1 => 'CP',
        self::PROBLEM_PID_2 => 'PK',
        self::PROBLEM_PID_5 => 'KT',
        self::PROBLEM_PID_4 => 'RZ',
//        self::PROBLEM_PID_3 => 'SY',
//        self::PROBLEM_PID_100 => 'SY',
//        self::PROBLEM_PID_101 => 'WM',
//        self::PROBLEM_PID_102 => 'MT',
//        self::PROBLEM_PID_103 => 'DY',
        self::PROBLEM_PID_6  => 'SO',
        self::PROBLEM_PID_7  => 'SQ',
        self::PROBLEM_PID_8  => 'IF',
        self::PROBLEM_PID_9  => 'SU',
        self::PROBLEM_PID_10 => 'OT',
    ];

    // 问题反馈的父级类型
    const PROBLEM_FEEDBACK = [
        self::PROBLEM_PID_1,
        self::PROBLEM_PID_2,
        self::PROBLEM_PID_3,
        self::PROBLEM_PID_4,
    ];

    //问题反馈问题列表
    const PROBLEM_FEEDBACK_LIST = [
        self::PROBLEM_PID_1 => '仓储配送问题',
        self::PROBLEM_PID_2 => '品质异常问题',
        self::PROBLEM_PID_4 => '设备软装问题',
    ];

    //问题反馈问题列表-merchant
    const PROBLEM_FEEDBACK_TYPE_LIST = [
        [
            "value" => self::PROBLEM_PID_2,
            "key"   => self::PROBLEM_FEEDBACK_LIST[self::PROBLEM_PID_2],
            "child" => self::PROBLEM_PID_2_CHILDREN_MAPPING,
            "desc"  => "串品异物/变质、包装破损、断签、产品数量/重量、颜色/口感异常等品质异常问题"
        ],
        [
            "value" => self::PROBLEM_PID_1,
            "key"   => self::PROBLEM_FEEDBACK_LIST[self::PROBLEM_PID_1],
            "child" => self::PROBLEM_PID_1_CHILDREN_MAPPING,
            "desc"  => "发货信息、到货信息、在途货物坏损、到货数量差异、司机服务、配送时间等仓配配送问题"
        ],
        [
            "value" => self::PROBLEM_PID_4,
            "key"   => "设备问题",
            "child" => self::PROBLEM_PID_4_CHILDREN_EQUIP_MAPPING,
            "desc"  => "店内炸炉、展柜/净水器、监控设备、收银设备、商屏广告屏等公司统一采购的设备问题"
        ],
        [
            "value" => self::PROBLEM_PID_4,
            "key"   => "软装问题",
            "child" => self::PROBLEM_PID_4_CHILDREN_SOFT_MAPPING,
            "desc"  => "店内软装、吧台、道具等公司统一采购的软装问题"
        ]
    ];

    //问题反馈问题列表-web
    const PROBLEM_FEEDBACK_TYPE_LIST_WEB = [
        [
            "value" => self::PROBLEM_PID_2,
            "key"   => self::PROBLEM_FEEDBACK_LIST[self::PROBLEM_PID_2],
            "child" => self::PROBLEM_PID_2_CHILDREN_MAPPING,
            "desc"  => "串品异物/变质、包装破损、断签、产品数量/重量、颜色/口感异常等品质异常问题",
            "sourceType" => WorkOrderApplyMainModel::SOURCE_TYPE_ARRAY,
        ],
        [
            "value" => self::PROBLEM_PID_1,
            "key"   => self::PROBLEM_FEEDBACK_LIST[self::PROBLEM_PID_1],
            "child" => self::PROBLEM_PID_1_CHILDREN_MAPPING,
            "desc"  => "发货信息、到货信息、在途货物坏损、到货数量差异、司机服务、配送时间等仓配配送问题",
            "sourceType" => WorkOrderApplyMainModel::SOURCE_TYPE_ARRAY,
        ],
        [
            "value" => self::PROBLEM_PID_4,
            "key"   => "设备问题",
            "child" => self::PROBLEM_PID_4_CHILDREN_EQUIP_MAPPING,
            "desc"  => "店内炸炉、展柜/净水器、监控设备、收银设备、商屏广告屏等公司统一采购的设备问题",
            "sourceType" => WorkOrderApplyMainModel::SOURCE_TYPE_ARRAY,
        ],
        [
            "value" => self::PROBLEM_PID_4,
            "key"   => "软装问题",
            "child" => self::PROBLEM_PID_4_CHILDREN_SOFT_MAPPING,
            "desc"  => "店内软装、吧台、道具等公司统一采购的软装问题",
            "sourceType" => WorkOrderApplyMainModel::SOURCE_TYPE_ARRAY,
        ],
        [
            "value" => self::PROBLEM_PID_6,
            "key"   => "门店运营问题",
            "child" => self::PROBLEM_PID_6_CHILDREN_MAPPING,
            "desc"  => "门店运营问题",
            "sourceType" => WorkOrderApplyMainModel::SOURCE_TYPE_ARRAY_CUSTOMER,
        ],
        [
            "value" => self::PROBLEM_PID_7,
            "key"   => "供应链问题",
            "child" => self::PROBLEM_PID_7_CHILDREN_MAPPING,
            "desc"  => "供应链问题",
            "sourceType" => WorkOrderApplyMainModel::SOURCE_TYPE_ARRAY_CUSTOMER,
        ],
        [
            "value" => self::PROBLEM_PID_8,
            "key"   => "招商加盟问题",
            "child" => self::PROBLEM_PID_8_CHILDREN_MAPPING,
            "desc"  => "招商加盟问题",
            "sourceType" => WorkOrderApplyMainModel::SOURCE_TYPE_ARRAY_CUSTOMER,
        ],
        [
            "value" => self::PROBLEM_PID_9,
            "key"   => "软件使用",
            "child" => self::PROBLEM_PID_9_CHILDREN_MAPPING,
            "desc"  => "软件使用",
            "sourceType" => WorkOrderApplyMainModel::SOURCE_TYPE_ARRAY_CUSTOMER,
        ],
        [
            "value" => self::PROBLEM_PID_10,
            "key"   => "其它反馈问题",
            "child" => self::PROBLEM_PID_10_CHILDREN_MAPPING,
            "desc"  => "其它反馈问题",
            "sourceType" => WorkOrderApplyMainModel::SOURCE_TYPE_ARRAY_CUSTOMER,
        ],
    ];


    //问题反馈问题描述 写死！
    const PROBLEM_FEEDBACK_DESC = [
        self::PROBLEM_PID_1 => '关于发货信息、到货信息、运输中发生货物坏损、到货数量差异、司机服务等问题，请在此反馈',
        self::PROBLEM_PID_2 => '关于串品异物、变质、包装破损、断签、产品规格、颜色或口感存在异常的品控质量问题，请在此反馈',
        self::PROBLEM_PID_4 => '关于本店除收银机外的炸炉、展柜、软装、吧台、道具、监控等公司统一采购的设备故障，请在此反馈',
    ];

    //仓储问题
    const PROBLEM_PID_1_CHILDREN_1 = 1;
    const PROBLEM_PID_1_CHILDREN_2 = 2;
    const PROBLEM_PID_1_CHILDREN_3 = 3;
    const PROBLEM_PID_1_CHILDREN_4 = 4;
    const PROBLEM_PID_1_CHILDREN_5 = 5;
    const PROBLEM_PID_1_CHILDREN_6 = 6;
    const PROBLEM_PID_1_CHILDREN_7 = 7;
    const PROBLEM_PID_1_CHILDREN_8 = 8;
    const PROBLEM_PID_1_CHILDREN_9 = 9;
    const PROBLEM_PID_1_CHILDREN_10 = 10;
    const PROBLEM_PID_1_CHILDREN_11 = 11;
    const PROBLEM_PID_1_CHILDREN_12 = 12;
    const PROBLEM_PID_1_CHILDREN_13 = 13;
    const PROBLEM_PID_1_CHILDREN_14 = 14;
    const PROBLEM_PID_1_CHILDREN_15 = 15;
    const PROBLEM_PID_1_CHILDREN_16 = 16;
    const PROBLEM_PID_1_CHILDREN_17 = 17;
    const PROBLEM_PID_1_CHILDREN_18 = 18;
    const PROBLEM_PID_1_CHILDREN_19 = 19;
    const PROBLEM_PID_1_CHILDREN_20 = 20;

    //仓储问题子类映射
    const PROBLEM_PID_1_CHILDREN_MAPPING = [
        self::PROBLEM_PID_1_CHILDREN_1  => '配送问题-配送延迟',//延迟配送/恢复配送
        self::PROBLEM_PID_1_CHILDREN_10 => '配送问题-提前到货',
        self::PROBLEM_PID_1_CHILDREN_11 => '配送问题-配送信息错误',
        self::PROBLEM_PID_1_CHILDREN_12 => '配送问题-车辆更改',
        self::PROBLEM_PID_1_CHILDREN_13 => '配送问题-商场有收货时间规定',
        self::PROBLEM_PID_1_CHILDREN_14 => '配送问题-门店要求到货时间',
        self::PROBLEM_PID_1_CHILDREN_3  => '交接异常-错货',  //数量差异（签收时）
        self::PROBLEM_PID_1_CHILDREN_15 => '交接异常-多货',
        self::PROBLEM_PID_1_CHILDREN_16 => '交接异常-缺货',
        self::PROBLEM_PID_1_CHILDREN_2  => '品质问题-商品破损',//内包装破损（签收时）
        self::PROBLEM_PID_1_CHILDREN_5  => '品质问题-失温缓化',//温度差异（签收时）
//        self::PROBLEM_PID_1_CHILDREN_4  => '品质问题-异物',  //品相差异（签收时）
        self::PROBLEM_PID_1_CHILDREN_17 => '司机服务-司机答复问题',
        self::PROBLEM_PID_1_CHILDREN_18 => '司机服务-司机态度问题',
        self::PROBLEM_PID_1_CHILDREN_7  => '司机服务-司机配合问题',//司机服务
        self::PROBLEM_PID_1_CHILDREN_19 => '直配问题-直配物流信息',
        self::PROBLEM_PID_1_CHILDREN_20 => '直配问题-直配品质问题',
        self::PROBLEM_PID_1_CHILDREN_8  => '门店问题-统配信息变更',
        self::PROBLEM_PID_1_CHILDREN_9  => '其他',
    ];

    //仓储问题子类映射描述
    const PROBLEM_PID_1_CHILDREN_DESC_MAPPING = [
        self::PROBLEM_PID_1_CHILDREN_1  => '指物流车辆配送到门店的时间，超过门店允收的时间范围，(不在9点--21点之间)，比21点时间要晚；',
        self::PROBLEM_PID_1_CHILDREN_10 => '指物流车辆配送到门店的时间，比门店允收的时间范围提前，(不在9点--21点之间)，在早上9点之前；',
        self::PROBLEM_PID_1_CHILDREN_11 => '指物流车辆配送到门店的地址信息与门店实际收货地址信息不一致，造成门店无法现场收货；',
        self::PROBLEM_PID_1_CHILDREN_12 => '指实际到店的配送车辆与原系统提示的物流车辆信息不一致，导致门店无法及时收货；',
        self::PROBLEM_PID_1_CHILDREN_13 => '指夸父合作的门店加盟商是在商场、卖场等综合性购物广场，商场有对应的收货实际规定，如下午14点--16点允许，如下午17点之后允许等；',
        self::PROBLEM_PID_1_CHILDREN_14 => '指门店因特殊因素或客观环境导致收货时间有所限制，并由督导同步物流部明确进行到货时间要求及特殊情况备注的；',
        self::PROBLEM_PID_1_CHILDREN_3  => '指物流司机与门店进行现场交接时，门店收货的商品与实际送货单商品不一致，物流配送商品错误，导致门店无法接收；错货原因：①仓端商品备货出库错误；②物流司机卸错货导致；',
        self::PROBLEM_PID_1_CHILDREN_15 => '指物流司机与门店进行现场交接时，门店收货的商品与实际送货单商品不一致，实际商品比物流送货单标注的某类商品数量多；',
        self::PROBLEM_PID_1_CHILDREN_16 => '指物流司机与门店进行现场交接时，门店实际未收到送货单上所列明的商品数量，或者个别商品仓储发货数量不足，导致到店商品少货或者缺货；少货或缺货原因：①仓端库存商品与系统不一致，实物缺货；②仓端人员备货缺失，造成货品漏发；',
        self::PROBLEM_PID_1_CHILDREN_2  => '指物流司机与门店进行现场交接时，发现部分商品外箱变形、内包装商品实物破损，以及外箱破损、内包装商品也破损的情况，导致门店无法收货；',
        self::PROBLEM_PID_1_CHILDREN_5  => '指物流司机与门店进行现场交接时，门店加盟商发现部分商品出现化冻、滴水、外箱浸湿等情况，商品存在缓化变质的风险，导致门店无法收货；',
        self::PROBLEM_PID_1_CHILDREN_4  => '指物流司机与门店进行现场交接后，门店加盟商在进行商品开箱验货时发现部分商品出现与原产品不一致的异物，导致该商品无法售卖。',
        self::PROBLEM_PID_1_CHILDREN_17 => '指物流司机未能及时联系门店进行沟通，同时未能就具体到店时间给与门店时间回复，导致门店加盟商体感较差的情况；',
        self::PROBLEM_PID_1_CHILDREN_18 => '指物流司机在与门店加盟商人员进行沟通过程中，态度表现恶劣、言语蛮横，且与门店人员发生口角；',
        self::PROBLEM_PID_1_CHILDREN_7  => '指物流司机未配合门店进行交接工作，未将车厢内货品转移至车尾进行交接动作；',
        self::PROBLEM_PID_1_CHILDREN_19 => '指工厂/合作商直配到门店的商品物流延迟、物流信息缺失，导致门店无法查询商品到店进度；',
        self::PROBLEM_PID_1_CHILDREN_20 => '指工厂/合作商直配到门店的商品在物流运输、配送过程中，出现商品破损、型号错品等异常情况；',
        self::PROBLEM_PID_1_CHILDREN_8  => '指门店自身发起统配信息变更修改,如收货地址、接收人手机电话信息等',
        self::PROBLEM_PID_1_CHILDREN_9  => '指需满足某种限定条件，不具备普遍性的其它各种和仓储物流有关联，但不属于公司内部物流原因所归属的问题场景',
    ];

    const PROBLEM_PID_1_CHILDREN_PREFIX = [
        self::PROBLEM_PID_1_CHILDREN_1 => '01',
        self::PROBLEM_PID_1_CHILDREN_2 => '02',
        self::PROBLEM_PID_1_CHILDREN_3 => '03',
        self::PROBLEM_PID_1_CHILDREN_4 => '04',
        self::PROBLEM_PID_1_CHILDREN_5 => '05',
        self::PROBLEM_PID_1_CHILDREN_6 => '06',
        self::PROBLEM_PID_1_CHILDREN_7 => '07',
        self::PROBLEM_PID_1_CHILDREN_8 => '08',
        self::PROBLEM_PID_1_CHILDREN_9 => '09',
        self::PROBLEM_PID_1_CHILDREN_10 => '10',
        self::PROBLEM_PID_1_CHILDREN_11 => '11',
        self::PROBLEM_PID_1_CHILDREN_12 => '12',
        self::PROBLEM_PID_1_CHILDREN_13 => '13',
        self::PROBLEM_PID_1_CHILDREN_14 => '14',
        self::PROBLEM_PID_1_CHILDREN_15 => '15',
        self::PROBLEM_PID_1_CHILDREN_16 => '16',
        self::PROBLEM_PID_1_CHILDREN_17 => '17',
        self::PROBLEM_PID_1_CHILDREN_18 => '18',
        self::PROBLEM_PID_1_CHILDREN_19 => '19',
        self::PROBLEM_PID_1_CHILDREN_20 => '20',
    ];


    const PROBLEM_PID_1_CHILDREN_FILE = [
        self::PROBLEM_PID_1_CHILDREN_2 => [
            "arrivalNoteImg",
            "productAbnormalImg",
        ],
        self::PROBLEM_PID_1_CHILDREN_3 => [
            "arrivalNoteImg",
            "productAbnormalImg",
        ],
        self::PROBLEM_PID_1_CHILDREN_4 => [
            "arrivalNoteImg",
            "productAbnormalImg",
        ],
        self::PROBLEM_PID_1_CHILDREN_5 => [
            "arrivalNoteImg",
            "productAbnormalImg",
        ],
        self::PROBLEM_PID_1_CHILDREN_15 => [
            "arrivalNoteImg",
            "productAbnormalImg",
        ],
        self::PROBLEM_PID_1_CHILDREN_16 => [
            "arrivalNoteImg",
            "productAbnormalImg",
        ],
    ];

    //设备软装问题
    const PROBLEM_PID_4_CHILDREN_1  = 1;
    const PROBLEM_PID_4_CHILDREN_2  = 2;
    const PROBLEM_PID_4_CHILDREN_3  = 3;
    const PROBLEM_PID_4_CHILDREN_4  = 4;
    const PROBLEM_PID_4_CHILDREN_5  = 5;
    const PROBLEM_PID_4_CHILDREN_6  = 6;
    const PROBLEM_PID_4_CHILDREN_7  = 7;
    const PROBLEM_PID_4_CHILDREN_8  = 8;
    const PROBLEM_PID_4_CHILDREN_9  = 9;
    const PROBLEM_PID_4_CHILDREN_10 = 10;
    const PROBLEM_PID_4_CHILDREN_11 = 11;
    const PROBLEM_PID_4_CHILDREN_12 = 12;
    const PROBLEM_PID_4_CHILDREN_13 = 13;
    const PROBLEM_PID_4_CHILDREN_14 = 14;
    const PROBLEM_PID_4_CHILDREN_15 = 15;
    const PROBLEM_PID_4_CHILDREN_16 = 16;

    //仓储问题子类映射
    const PROBLEM_PID_4_CHILDREN_MAPPING = [
        self::PROBLEM_PID_4_CHILDREN_1  => '双缸炸炉',      // 【原炸炉问题】
        self::PROBLEM_PID_4_CHILDREN_14 => '单缸臭豆腐炸炉',   // 【原炸炉问题】
        self::PROBLEM_PID_4_CHILDREN_15 => '炸鸡炸炉',      // 【原炸炉问题】
        self::PROBLEM_PID_4_CHILDREN_2  => '风幕展柜',      // 【原展柜问题】
        self::PROBLEM_PID_4_CHILDREN_3  => '阿里云监控问题',   //特殊处理
        self::PROBLEM_PID_4_CHILDREN_4  => '悠络客监控问题',   //特殊处理
        self::PROBLEM_PID_4_CHILDREN_16 => '炸鸡保温柜',
        self::PROBLEM_PID_4_CHILDREN_5  => '软装问题',
        self::PROBLEM_PID_4_CHILDREN_6  => '吧台问题',
        self::PROBLEM_PID_4_CHILDREN_7  => '道具问题',
//        self::PROBLEM_PID_4_CHILDREN_9  => '商显广告屏问题',   //特殊处理
        self::PROBLEM_PID_4_CHILDREN_10 => '收银设备问题',    //特殊处理
        self::PROBLEM_PID_4_CHILDREN_11 => '监控问题',      //特殊处理
        self::PROBLEM_PID_4_CHILDREN_12 => '商显广告屏问题',   //特殊处理
        self::PROBLEM_PID_4_CHILDREN_13 => '净水器问题',
        self::PROBLEM_PID_4_CHILDREN_8  => '其他',
    ];

    const PROBLEM_PID_4_CHILDREN_SOFT_MAPPING = [
        self::PROBLEM_PID_4_CHILDREN_5 => '软装问题',
        self::PROBLEM_PID_4_CHILDREN_6 => '吧台问题',
        self::PROBLEM_PID_4_CHILDREN_7 => '道具问题',
    ];

    const PROBLEM_PID_4_CHILDREN_EQUIP_MAPPING = [
        self::PROBLEM_PID_4_CHILDREN_1  => '双缸炸炉',   // 【原炸炉问题】
        self::PROBLEM_PID_4_CHILDREN_14 => '单缸臭豆腐炸炉',// 【原炸炉问题】
        self::PROBLEM_PID_4_CHILDREN_15 => '炸鸡炸炉',   // 【原炸炉问题】
        self::PROBLEM_PID_4_CHILDREN_2  => '风幕展柜',   // 【原展柜问题】
        self::PROBLEM_PID_4_CHILDREN_11 => '监控系统',   // 【原监控问题】特殊处理
        self::PROBLEM_PID_4_CHILDREN_13 => '净水器',    // 【原净水器问题】
        self::PROBLEM_PID_4_CHILDREN_12 => '商显广告屏',  // 【原商显广告屏问题】特殊处理
        self::PROBLEM_PID_4_CHILDREN_10 => '收银设备',   // 【原收银设备问题】特殊处理
        self::PROBLEM_PID_4_CHILDREN_16 => '炸鸡保温柜',
        self::PROBLEM_PID_4_CHILDREN_5  => '软装问题',
        self::PROBLEM_PID_4_CHILDREN_8  => '其他',
    ];

    const PROBLEM_PID_4_CHILDREN_PREFIX = [
        self::PROBLEM_PID_4_CHILDREN_1 => '01',
        self::PROBLEM_PID_4_CHILDREN_2 => '02',
        self::PROBLEM_PID_4_CHILDREN_3 => '03',
        self::PROBLEM_PID_4_CHILDREN_4 => '04',
        self::PROBLEM_PID_4_CHILDREN_5 => '05',
        self::PROBLEM_PID_4_CHILDREN_6 => '06',
        self::PROBLEM_PID_4_CHILDREN_7 => '07',
        self::PROBLEM_PID_4_CHILDREN_8 => '08',
        self::PROBLEM_PID_4_CHILDREN_9 => '09',
    ];


    const PROBLEM_PID_4_CHILDREN_FILE = [
        self::PROBLEM_PID_4_CHILDREN_1 => [
            "equipmentImg",
            "equipmentVideo",
        ],
        self::PROBLEM_PID_4_CHILDREN_2 => [
            "equipmentImg",
            "equipmentVideo",
        ],
        self::PROBLEM_PID_4_CHILDREN_13 => [
            "equipmentImg",
            "equipmentVideo",
        ],
        self::PROBLEM_PID_4_CHILDREN_3 => [
            "equipmentImg",
            "equipmentVideo",
        ],
        self::PROBLEM_PID_4_CHILDREN_4 => [
            "equipmentImg",
            "equipmentVideo",
        ],
        self::PROBLEM_PID_4_CHILDREN_5 => [
            "equipmentImg",
            "equipmentVideo",
        ],
        self::PROBLEM_PID_4_CHILDREN_6 => [
            "equipmentImg",
            "equipmentVideo",
        ],
        self::PROBLEM_PID_4_CHILDREN_7 => [
            "equipmentImg",
            "equipmentVideo",
        ],
        self::PROBLEM_PID_4_CHILDREN_8 => [
            "equipmentImg",
            "equipmentVideo",
        ],
        self::PROBLEM_PID_4_CHILDREN_9 => [
            "equipmentImg",
            "equipmentVideo",
        ],
    ];

    //仓储问题子类的子类
    const PROBLEM_PID_1_CHILDREN_1_CHILDREN_1 = 1;
    const PROBLEM_PID_1_CHILDREN_1_CHILDREN_2 = 2;

    //仓储问题子类的子类映射
    const PROBLEM_PID_1_CHILDREN_1_CHILDREN_MAPPING = [
        self::PROBLEM_PID_1_CHILDREN_1_CHILDREN_1 => '延迟配送',
        self::PROBLEM_PID_1_CHILDREN_1_CHILDREN_2 => '恢复配送',
    ];

    //品控问题
    const PROBLEM_PID_2_CHILDREN_1 = 1;
    const PROBLEM_PID_2_CHILDREN_2 = 2;
    const PROBLEM_PID_2_CHILDREN_3 = 3;
    const PROBLEM_PID_2_CHILDREN_4 = 4;
    const PROBLEM_PID_2_CHILDREN_5 = 5;
    const PROBLEM_PID_2_CHILDREN_6 = 6;
    const PROBLEM_PID_2_CHILDREN_7 = 7;
    const PROBLEM_PID_2_CHILDREN_8 = 8;
    const PROBLEM_PID_2_CHILDREN_9 = 9;
    const PROBLEM_PID_2_CHILDREN_10 = 10;
    const PROBLEM_PID_2_CHILDREN_11 = 11;
    const PROBLEM_PID_2_CHILDREN_12 = 12;
    //品控问题子类映射
    const PROBLEM_PID_2_CHILDREN_MAPPING = [
        self::PROBLEM_PID_2_CHILDREN_2  => '异味/变质',
        self::PROBLEM_PID_2_CHILDREN_1  => '异物',
        self::PROBLEM_PID_2_CHILDREN_5  => '颜色异常',
        self::PROBLEM_PID_2_CHILDREN_4  => '重量/数量',
        self::PROBLEM_PID_2_CHILDREN_3  => '包装问题',
        self::PROBLEM_PID_2_CHILDREN_9  => '过期',
        self::PROBLEM_PID_2_CHILDREN_10 => '外形异常',
        self::PROBLEM_PID_2_CHILDREN_6  => '口感异常',
        self::PROBLEM_PID_2_CHILDREN_11 => '效期问题',
        self::PROBLEM_PID_2_CHILDREN_8  => '脱签/断签',
        self::PROBLEM_PID_2_CHILDREN_12 => '竹签青皮/发霉',
        self::PROBLEM_PID_2_CHILDREN_7  => '其他',
    ];

    //品控问题子类映射描述
    const PROBLEM_PID_2_CHILDREN_DESC_MAPPING = [
        self::PROBLEM_PID_2_CHILDREN_2  => '吃起来或者闻起来感觉有非产品本身的味道，或者吃完出现呕吐、拉肚子的情况',
        self::PROBLEM_PID_2_CHILDREN_1  => '出现非产品本身应该有的东西，例如头发、竹签、石子、淤血、鸡骨、鸡毛、油脂块等物质',
        self::PROBLEM_PID_2_CHILDREN_5  => '出现非产品本身应该有的颜色，例如颜色过深、颜色过浅等',
        self::PROBLEM_PID_2_CHILDREN_4  => '产品整袋/单只重量不符合包装标注的重量；或者缺少支数、缺少袋数问题',
        self::PROBLEM_PID_2_CHILDREN_3  => '出现生产日期不清楚、标签其他信息不清楚、封口不严、外箱脏污或破损的问题',
        self::PROBLEM_PID_2_CHILDREN_9  => '产品收到时，已经过了产品的保质期',
        self::PROBLEM_PID_2_CHILDREN_10 => '产品本身外形异常、出现断裂、分层、破损、风干、黏连等问题',
        self::PROBLEM_PID_2_CHILDREN_6  => '吃起来有腥味、过咸/不咸、过辣/不辣、有苦味、口感发硬、或其他非本品应该有的味道',
        self::PROBLEM_PID_2_CHILDREN_11 => '收到货时，发现产品剩余保质期过短',
        self::PROBLEM_PID_2_CHILDREN_8  => '串品的竹签问题：串品出现掉肉、串品竹签前端漏出过长、串品的竹签断裂/开叉',
        self::PROBLEM_PID_2_CHILDREN_12 => '门店购买的竹签：有青皮、黑点、霉点、断裂、劈签过多的现象',
        self::PROBLEM_PID_2_CHILDREN_7  => '以上标签不涵盖的，点选此标签，并进行详情描述',
    ];

    const PROBLEM_PID_2_CHILDREN_PREFIX = [
        self::PROBLEM_PID_2_CHILDREN_1 => '01',
        self::PROBLEM_PID_2_CHILDREN_2 => '02',
        self::PROBLEM_PID_2_CHILDREN_3 => '03',
        self::PROBLEM_PID_2_CHILDREN_4 => '04',
        self::PROBLEM_PID_2_CHILDREN_5 => '05',
        self::PROBLEM_PID_2_CHILDREN_6 => '06',
        self::PROBLEM_PID_2_CHILDREN_7 => '07',
        self::PROBLEM_PID_2_CHILDREN_8 => '08',
        self::PROBLEM_PID_2_CHILDREN_9 => '09',
        self::PROBLEM_PID_2_CHILDREN_10 => '10',
        self::PROBLEM_PID_2_CHILDREN_11 => '11',
        self::PROBLEM_PID_2_CHILDREN_12 => '12',
    ];


    const PROBLEM_PID_2_CHILDREN_FILE = [
        self::PROBLEM_PID_2_CHILDREN_1 => [
            "arrivalNoteImg",
            "productAbnormalImg",
            "productInnerLabelImg",
            "productCreatedDateImg",
        ],
        self::PROBLEM_PID_2_CHILDREN_2 => [
            "arrivalNoteImg",
            "productAbnormalImg",
            "productInnerLabelImg",
            "productCreatedDateImg",
        ],
        self::PROBLEM_PID_2_CHILDREN_3 => [
            "arrivalNoteImg",
            "productAbnormalImg",
            "productInnerLabelImg",
            "productCreatedDateImg",
        ],
        self::PROBLEM_PID_2_CHILDREN_4 => [
            "arrivalNoteImg",
            "productAbnormalImg",
            "productInnerLabelImg",
            "productCreatedDateImg",
        ],
        self::PROBLEM_PID_2_CHILDREN_5 => [
            "arrivalNoteImg",
            "productAbnormalImg",
            "productInnerLabelImg",
            "productCreatedDateImg",
        ],
        self::PROBLEM_PID_2_CHILDREN_6 => [
            "arrivalNoteImg",
            "productAbnormalImg",
            "productInnerLabelImg",
            "productCreatedDateImg",
        ],
        self::PROBLEM_PID_2_CHILDREN_8 => [
            "arrivalNoteImg",
            "productAbnormalImg",
            "productInnerLabelImg",
            "productCreatedDateImg",
        ],
        self::PROBLEM_PID_2_CHILDREN_9 => [
            "arrivalNoteImg",
            "productAbnormalImg",
            "productInnerLabelImg",
            "productCreatedDateImg",
        ],
        self::PROBLEM_PID_2_CHILDREN_10 => [
            "arrivalNoteImg",
            "productAbnormalImg",
            "productInnerLabelImg",
            "productCreatedDateImg",
        ],
        self::PROBLEM_PID_2_CHILDREN_11 => [
            "arrivalNoteImg",
            "productAbnormalImg",
            "productInnerLabelImg",
            "productCreatedDateImg",
        ],
        self::PROBLEM_PID_2_CHILDREN_12 => [
            "arrivalNoteImg",
            "productAbnormalImg",
            "productInnerLabelImg",
            "productCreatedDateImg",
        ],
    ];

    //期望送达时间
    const EXPECT_DATE_SPECIFIC = 1;
    const EXPECT_DATE_SOON     = 2;
    const EXPECT_DATE_DELAY    = 3;

    const EXPECT_DATE_MAPPING = [
        self::EXPECT_DATE_SPECIFIC => '尽快送达',
        self::EXPECT_DATE_SOON     => '延迟配送等通知',
        self::EXPECT_DATE_DELAY    => '具体日期',
    ];


    //延迟配送
    const EXPECT_DATE_SOON_MAPPING = [
        self::EXPECT_DATE_SOON  => '延迟配送等通知',
        self::EXPECT_DATE_DELAY => '具体日期',
    ];

    //恢复配送
    const EXPECT_DATE_SPECIFIC_MAPPING = [
        self::EXPECT_DATE_SPECIFIC => '尽快送达',
        self::EXPECT_DATE_DELAY    => '具体日期',
    ];


    //设备软装  是否影响正常经营

    const EQUIPMENT_SOFT_ON  = 1;
    const EQUIPMENT_SOFT_OFF = 2;


    const EQUIPMENT_SOFT_MAPPING = [
        self::EQUIPMENT_SOFT_ON  => '影响',
        self::EQUIPMENT_SOFT_OFF => '不影响'
    ];


    //物流状态
    const DELIVER_STATUS_1 = 1;
    const DELIVER_STATUS_2 = 2;

    const DELIVER_STATUS_MAPPING = [
        self::DELIVER_STATUS_1 => '已送达',
        self::DELIVER_STATUS_2 => '未送达',
    ];

    // 不分配，需要抢单的PID
    const GRAB_PIDS = [
        self::PROBLEM_PID_1,
        self::PROBLEM_PID_2,
        self::PROBLEM_PID_5,
    ];

    // 优先级
    const PRIORITY_0 = 0;
    const PRIORITY_1 = 1;
    const PRIORITY_2 = 2;
    const PRIORITY_3 = 3;

    const PRIORITY_TEXT = [
        self::PRIORITY_0 => '-',
        self::PRIORITY_1 => '低',
        self::PRIORITY_2 => '中',
        self::PRIORITY_3 => '高',
    ];

    //表单特殊处理 处理人 生产厂家 跟着表单走
    const FORM_SPECIAL_ITEM = [
        'handle',
        'chooseFactory',
        'deviceName',
        'deviceCreateTime',
        'deviceDeliveryTime',
    ];

    const FORM_BOOK_NO        = 'bookNo'; //特殊转化
    const FORM_ADDRESS_PREFIX = 'receiverAddressPrefix'; //特殊转化

    //设置需要默认值的字段 delayDeliverClassify2
    const DEFAULT_DELAY_DELIVER_CLASSIFY_1 = 'delayDeliverClassify1';
    const DEFAULT_DELAY_DELIVER_CLASSIFY_2 = 'delayDeliverClassify2';

    const DEFAULT_FIELD_MAPPING = [
        self::DEFAULT_DELAY_DELIVER_CLASSIFY_1 => self::EXPECT_DATE_SOON,
        self::DEFAULT_DELAY_DELIVER_CLASSIFY_2 => self::EXPECT_DATE_SPECIFIC,
    ];

    // 新增问题工单指派当前处理人
    const NEW_GRAB_PIDS = [
        self::PROBLEM_PID_6,
        self::PROBLEM_PID_7,
        self::PROBLEM_PID_8,
        self::PROBLEM_PID_9,
        self::PROBLEM_PID_10,
    ];

    //门店运营问题
    const PROBLEM_PID_6_CHILDREN_1 = 1;
    const PROBLEM_PID_6_CHILDREN_2 = 2;
    const PROBLEM_PID_6_CHILDREN_3 = 3;
    const PROBLEM_PID_6_CHILDREN_4 = 4;
    const PROBLEM_PID_6_CHILDREN_5 = 5;
    const PROBLEM_PID_6_CHILDREN_6 = 6;
    const PROBLEM_PID_6_CHILDREN_7 = 7;

    //门店运营问题子类映射
    const PROBLEM_PID_6_CHILDREN_MAPPING = [
        self::PROBLEM_PID_6_CHILDREN_1 => '店铺运营',
        self::PROBLEM_PID_6_CHILDREN_2 => '稽核处罚',
        self::PROBLEM_PID_6_CHILDREN_3 => '外卖问题',
        self::PROBLEM_PID_6_CHILDREN_4 => '门店选址',
        self::PROBLEM_PID_6_CHILDREN_5 => '闭店问题',
        self::PROBLEM_PID_6_CHILDREN_6 => '迁址问题',
        self::PROBLEM_PID_6_CHILDREN_7 => '其他',
    ];

    const PROBLEM_PID_6_CHILDREN_PREFIX = [
        self::PROBLEM_PID_6_CHILDREN_1 => '01',
        self::PROBLEM_PID_6_CHILDREN_2 => '02',
        self::PROBLEM_PID_6_CHILDREN_3 => '03',
        self::PROBLEM_PID_6_CHILDREN_4 => '04',
        self::PROBLEM_PID_6_CHILDREN_5 => '05',
        self::PROBLEM_PID_6_CHILDREN_6 => '06',
        self::PROBLEM_PID_6_CHILDREN_7 => '07',
    ];
    const PROBLEM_PID_6_10_CHILDREN_FILE = [
        "problemImgVideo",
        "problemSolutionImgVideo",
    ];

    //供应链问题
    const PROBLEM_PID_7_CHILDREN_1 = 1;
    const PROBLEM_PID_7_CHILDREN_2 = 2;
    const PROBLEM_PID_7_CHILDREN_3 = 3;
    const PROBLEM_PID_7_CHILDREN_4 = 4;
    const PROBLEM_PID_7_CHILDREN_5 = 5;
    const PROBLEM_PID_7_CHILDREN_6 = 6;

    //供应链问题子类映射
    const PROBLEM_PID_7_CHILDREN_MAPPING = [
        self::PROBLEM_PID_7_CHILDREN_1 => '订货问题',
        self::PROBLEM_PID_7_CHILDREN_2 => '物流问题',
        self::PROBLEM_PID_7_CHILDREN_3 => '商品问题',
        self::PROBLEM_PID_7_CHILDREN_4 => '工服质量问题',
        self::PROBLEM_PID_7_CHILDREN_5 => '工服物流问题',
        self::PROBLEM_PID_7_CHILDREN_6 => '其他',
    ];

    const PROBLEM_PID_7_CHILDREN_PREFIX = [
        self::PROBLEM_PID_7_CHILDREN_1 => '01',
        self::PROBLEM_PID_7_CHILDREN_2 => '02',
        self::PROBLEM_PID_7_CHILDREN_3 => '03',
        self::PROBLEM_PID_7_CHILDREN_4 => '04',
        self::PROBLEM_PID_7_CHILDREN_5 => '05',
        self::PROBLEM_PID_7_CHILDREN_6 => '06',
    ];

    //招商加盟问题
    const PROBLEM_PID_8_CHILDREN_1 = 1;
    const PROBLEM_PID_8_CHILDREN_2 = 2;
    const PROBLEM_PID_8_CHILDREN_3 = 3;
    const PROBLEM_PID_8_CHILDREN_4 = 4;

    //招商加盟问题子类映射
    const PROBLEM_PID_8_CHILDREN_MAPPING = [
        self::PROBLEM_PID_8_CHILDREN_1 => '招商退款',
        self::PROBLEM_PID_8_CHILDREN_2 => '装修保证金退款',
        self::PROBLEM_PID_8_CHILDREN_3 => '合同押金',
        self::PROBLEM_PID_8_CHILDREN_4 => '其他',
    ];

    const PROBLEM_PID_8_CHILDREN_PREFIX = [
        self::PROBLEM_PID_8_CHILDREN_1 => '01',
        self::PROBLEM_PID_8_CHILDREN_2 => '02',
        self::PROBLEM_PID_8_CHILDREN_3 => '03',
        self::PROBLEM_PID_8_CHILDREN_4 => '04',
    ];

    //软件使用
    const PROBLEM_PID_9_CHILDREN_1 = 1;
    const PROBLEM_PID_9_CHILDREN_2 = 2;
    const PROBLEM_PID_9_CHILDREN_3 = 3;
    const PROBLEM_PID_9_CHILDREN_4 = 4;
    const PROBLEM_PID_9_CHILDREN_5 = 5;
    const PROBLEM_PID_9_CHILDREN_6 = 6;
    const PROBLEM_PID_9_CHILDREN_7 = 7;

    //软件使用子类映射
    const PROBLEM_PID_9_CHILDREN_MAPPING = [
        self::PROBLEM_PID_9_CHILDREN_1 => '夸父商家',
        self::PROBLEM_PID_9_CHILDREN_2 => '夸父收银',
        self::PROBLEM_PID_9_CHILDREN_3 => '美团收银',
        self::PROBLEM_PID_9_CHILDREN_4 => '夸父商屏',
        self::PROBLEM_PID_9_CHILDREN_5 => '夸父订货',
        self::PROBLEM_PID_9_CHILDREN_6 => '夸父点餐小程序',
        self::PROBLEM_PID_9_CHILDREN_7 => '其他',
    ];

    const PROBLEM_PID_9_CHILDREN_PREFIX = [
        self::PROBLEM_PID_9_CHILDREN_1 => '01',
        self::PROBLEM_PID_9_CHILDREN_2 => '02',
        self::PROBLEM_PID_9_CHILDREN_3 => '03',
        self::PROBLEM_PID_9_CHILDREN_4 => '04',
        self::PROBLEM_PID_9_CHILDREN_5 => '05',
        self::PROBLEM_PID_9_CHILDREN_6 => '06',
        self::PROBLEM_PID_9_CHILDREN_7 => '07',
    ];

    //其它反馈问题
    const PROBLEM_PID_10_CHILDREN_1 = 1;
    const PROBLEM_PID_10_CHILDREN_2 = 2;
    const PROBLEM_PID_10_CHILDREN_3 = 3;

    //其它反馈问题子类映射
    const PROBLEM_PID_10_CHILDREN_MAPPING = [
        self::PROBLEM_PID_10_CHILDREN_1 => '人员投诉',
        self::PROBLEM_PID_10_CHILDREN_2 => 'C端投诉',
        self::PROBLEM_PID_10_CHILDREN_3 => '其他',
    ];

    const PROBLEM_PID_10_CHILDREN_PREFIX = [
        self::PROBLEM_PID_10_CHILDREN_1 => '01',
        self::PROBLEM_PID_10_CHILDREN_2 => '02',
        self::PROBLEM_PID_10_CHILDREN_3 => '03',
    ];

    /**
     * 工单input详情页url
     * @param WorkOrderApplyMainModel $applyMain
     * @return string
     */
    public static function getDetailUrl(WorkOrderApplyMainModel $applyMain): string
    {
        $domain = config('webUrl.notify_web_cdn_url');

        if ($applyMain->problemPid == self::PROBLEM_PID_5) {
            $url = $domain . '#/pages/work-order/function-activation/form/index?type=' . $applyMain->problemChildId;
        } else {
            $url = $domain . '#/pages/work-order/feedback/store-delivery?workOrderNo=' . $applyMain->workOrderNo;
        }

        return $url;
    }
}
